<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group form-handle">
        <label class="control-label col-xs-12 col-sm-2">{:__('流水号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="instancecode"  class="form-control" name="row[instancecode]" type="text" value="{$serial_no}" readonly>
        </div>
    </div>
    {if $fieldList.jiafang.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jiafang')}:</label>
        <div class="col-xs-12 col-sm-8 {if $fieldList.jiafang.write==0}disablefield{/if}">
            <input id="c-jiafang" data-rule="required" class="form-control" name="row[jiafang]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.yifang.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Yifang')}:</label>
        <div class="col-xs-12 col-sm-8 {if $fieldList.yifang.write==0}disablefield{/if}">
            <input id="c-yifang" data-rule="required" class="form-control" name="row[yifang]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.name.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8 {if $fieldList.name.write==0}disablefield{/if}">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.file1.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('File1')}:</label>
        <div class="col-xs-12 col-sm-8 {if $fieldList.file1.write==0}disablefield{/if}">
            <input id="c-file1" data-rule="required" class="form-control" name="row[file1]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.file2.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('File2')}:</label>
        <div class="col-xs-12 col-sm-8 {if $fieldList.file2.write==0}disablefield{/if}">
            <input id="c-file2" data-rule="required" class="form-control" name="row[file2]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.file3.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('File3')}:</label>
        <div class="col-xs-12 col-sm-8 {if $fieldList.file3.write==0}disablefield{/if}">
            <input id="c-file3" data-rule="required" class="form-control" name="row[file3]" type="text" value="">
        </div>
    </div>
    {/if}
    <div class="form-group layer-footer">
        <div class="col-xs-12 col-sm-12" style="text-align: center;">
            <button id='save' type="button" class="btn btn-success btn-embossed">保存</button>
            <button id='add' type="submit" class="btn btn-info btn-embossed">提交</button>
            <button type="button" id='flowchart' class="btn btn-warning btn-embossed">{:__('流程图')}</button>
        </div>
    </div>
</form>
